import { http } from "@/utils/http";

type EnumModel = {
  id: number;
  name: string;
};

type Result = {
  success: boolean;
  data?: Array<Array<EnumModel>>;
};

//自定义下拉框数据源
export const GetSelectItemBySelectType = (enumNames: string) => {
  return http.request<Result>(
    "get",
    "/api/Common/GetSelectItemBySelectType?selectType=" + enumNames
  );
};
